package com.abc.scholarship.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @Author: LiJunXi
 * @Description:
 * @Date: 2024-07-08  11:19
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("tb_notice")
public class Notice {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String title;

    private String content;

    @TableField("u_id")
    private Long uId;

    @TableField("u_name")
    private String uName;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @TableField("update_time")
    private LocalDateTime updateTime;

    /**
     * 状态（1：正常，2：禁用）
     */
    @TableField("status")
    private Integer status;

    private Integer year;
}
